package chapter04.example18_23;
class Animal2{
    public String toString(){
        return "这是一个动物。";
    }
}
public class Example19 {
    public static void main(String[] args) {
        Animal2 animal = new Animal2();
        System.out.println("animal.toString()");
    }
}
